#include <stdio.h>

int main() {
    double a1, b1, a2, b2;
    
    // 输入两个复数
    scanf("%lf %lf %lf %lf", &a1, &b1, &a2, &b2);

    // 加法
    if((int)(a1+a2)==0&&(int)(b1+b2)==0){
        printf("(%.1f+%.1fi) + (%.1f+%.1fi) = 0.0\n",a1, b1, a2, b2);
    }else if((int)(a1+a2)==0 && (int)(b1+b2)!=0){
        printf("(%.1f+%.1fi) + (%.1f+%.1fi)=%.1fi\n",a1, b1, a2, b2,b1+b2);
    }else if((int)(a1+a2)!=0 && (int)(b1+b2)==0){
        printf("(%.1f+%.1fi) + (%.1f+%.1fi)=%.1f\n",a1, b1, a2, b2,a1+a2);
    }else{
        printf("(%.1f+%.1fi) + (%.1f+%.1fi) = %.1f%+.1fi\n",
           a1, b1, a2, b2, a1 + a2, b1 + b2);
    }
    

    // 减法
    if((int)(a1-a2)==0&&(int)(b1-b2)==0){
        printf("(%.1f+%.1fi) - (%.1f+%.1fi) = 0.0\n",a1, b1, a2, b2);
    }else if((int)(a1-a2)==0 && (int)(b1-b2)!=0){
        printf("(%.1f+%.1fi) - (%.1f+%.1fi) = %.1fi\n",a1, b1, a2, b2,b1-b2);
    }else if((int)(a1-a2)!=0 && (int)(b1-b2)==0){
        printf("(%.1f+%.1fi) - (%.1f+%.1fi) = %.1f\n",a1, b1, a2, b2,a1-a2);
    }else{
    printf("(%.1f+%.1fi) - (%.1f+%.1fi) = %.1f%+.1fi\n",
           a1, b1, a2, b2, a1 - a2, b1 - b2);
    }

    // 乘法
    if((int)(a1*a2-b1*b2)==0&&(int)(a1*b2+b1*a2)==0){
        printf("(%.1f+%.1fi) * (%.1f+%.1fi) = 0.0\n",a1, b1, a2, b2);
    }else if((int)(a1*a2-b1*b2)==0 && (int)(a1*b2+b1*a2)!=0){
        printf("(%.1f+%.1fi) * (%.1f+%.1fi) = %.1fi\n",a1, b1, a2, b2,a1*b2+b1*a2);
    }else if((int)(a1*a2-b1*b2)!=0 && (int)(a1*b2+b1*a2)==0){
        printf("(%.1f+%.1fi) * (%.1f+%.1fi) = %.1f\n",a1, b1, a2, b2,a1*a2-b1*b2);
    }else{
    printf("(%.1f+%.1fi) * (%.1f+%.1fi) = %.1f%+.1fi\n",
           a1, b1, a2, b2, 
           a1 * a2 - b1 * b2, 
           a1 * b2 + b1 * a2);
    }

    // 除法 
    double denominator = a2 * a2 + b2 * b2;
    if((int)(a2*a2+b2*b2)==0){
        printf("(%.1f+%.1fi) / (%.1f+%.1fi) = 0.0\n",a1, b1, a2, b2);
    }
    else if((int)(a1*a2+b1*b2)==0 && (int)(b1*a2-a1*b2)!=0){
        printf("(%.1f+%.1fi) / (%.1f+%.1fi) = %.1fi\n",a1, b1, a2, b2,(a1*b2+b1*a2)/denominator);
    }else if((int)(a1*a2+b1*b2)!=0 && (int)(b1*a2-a1*b2)==0){
        printf("(%.1f+%.1fi) / (%.1f+%.1fi) = %.1f\n",a1, b1, a2, b2,(a1*a2+b1*b2)/denominator);
    }else{
    printf("(%.1f+%.1fi) / (%.1f+%.1fi) = %.1f%+.1fi\n",
           a1, b1, a2, b2, 
           (a1 * a2 + b1 * b2) / denominator, 
           (b1 * a2 - a1 * b2) / denominator);
    }
    return 0;
}